using System;
using System.Collections;
using System.Collections.Generic;

using Atom.Data.Base;

namespace Atom.Data.BusinessObjects
{
    public partial class TPatientInfo : BusinessBase<string>
    {
        #region Declarations

		private string _codeno = null;
		private string _identityname = null;
		private string _spellno = null;
		private string _customno = null;
		private string _strokeno = null;
		private string _patientname = String.Empty;
		private string _sex = null;
		private System.DateTime? _birthday = null;
		private int? _age = null;
		private string _marriagestatus = null;
		private string _nationality = null;
		private string _countysanjak = null;
		private string _identitycard = null;
		private string _address = null;
		private string _casenumber = null;
		private string _employment = null;
		private string _telephone = null;
		private string _mobile = null;
		private string _unitpostcode = null;
		private string _sicktype = null;
		private string _unittelephone = null;
		private string _cardid = null;
		private string _medicaresafetyid = null;
		private string _mark = null;
		private string _medicaretype = null;
		private string _workunit = null;
		private string _registeredaddress = null;
		private string _nation = null;
		private string _postalcode = null;
		private string _registeredtele = null;
		private System.DateTime _accessiontime = new DateTime();
		private string _homeplace = null;
		private string _insurer = null;
		private string _policy = null;
		private string _compactunit = null;
		private string _ageunit = null;
		private int? _avoirdupois = null;
		private string _pathophysiological = null;
		private string _allergy = null;
		
		
		
		#endregion

        #region Constructors

        public TPatientInfo() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_codeno);
			sb.Append(_identityname);
			sb.Append(_spellno);
			sb.Append(_customno);
			sb.Append(_strokeno);
			sb.Append(_patientname);
			sb.Append(_sex);
			sb.Append(_birthday);
			sb.Append(_age);
			sb.Append(_marriagestatus);
			sb.Append(_nationality);
			sb.Append(_countysanjak);
			sb.Append(_identitycard);
			sb.Append(_address);
			sb.Append(_casenumber);
			sb.Append(_employment);
			sb.Append(_telephone);
			sb.Append(_mobile);
			sb.Append(_unitpostcode);
			sb.Append(_sicktype);
			sb.Append(_unittelephone);
			sb.Append(_cardid);
			sb.Append(_medicaresafetyid);
			sb.Append(_mark);
			sb.Append(_medicaretype);
			sb.Append(_workunit);
			sb.Append(_registeredaddress);
			sb.Append(_nation);
			sb.Append(_postalcode);
			sb.Append(_registeredtele);
			sb.Append(_accessiontime);
			sb.Append(_homeplace);
			sb.Append(_insurer);
			sb.Append(_policy);
			sb.Append(_compactunit);
			sb.Append(_ageunit);
			sb.Append(_avoirdupois);
			sb.Append(_pathophysiological);
			sb.Append(_allergy);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual string Codeno
        {
            get { return _codeno; }
			set
			{
				OnCodenoChanging();
				_codeno = value;
				OnCodenoChanged();
			}
        }
		partial void OnCodenoChanging();
		partial void OnCodenoChanged();
		
		public virtual string Identityname
        {
            get { return _identityname; }
			set
			{
				OnIdentitynameChanging();
				_identityname = value;
				OnIdentitynameChanged();
			}
        }
		partial void OnIdentitynameChanging();
		partial void OnIdentitynameChanged();
		
		public virtual string Spellno
        {
            get { return _spellno; }
			set
			{
				OnSpellnoChanging();
				_spellno = value;
				OnSpellnoChanged();
			}
        }
		partial void OnSpellnoChanging();
		partial void OnSpellnoChanged();
		
		public virtual string Customno
        {
            get { return _customno; }
			set
			{
				OnCustomnoChanging();
				_customno = value;
				OnCustomnoChanged();
			}
        }
		partial void OnCustomnoChanging();
		partial void OnCustomnoChanged();
		
		public virtual string Strokeno
        {
            get { return _strokeno; }
			set
			{
				OnStrokenoChanging();
				_strokeno = value;
				OnStrokenoChanged();
			}
        }
		partial void OnStrokenoChanging();
		partial void OnStrokenoChanged();
		
		public virtual string Patientname
        {
            get { return _patientname; }
			set
			{
				OnPatientnameChanging();
				_patientname = value;
				OnPatientnameChanged();
			}
        }
		partial void OnPatientnameChanging();
		partial void OnPatientnameChanged();
		
		public virtual string Sex
        {
            get { return _sex; }
			set
			{
				OnSexChanging();
				_sex = value;
				OnSexChanged();
			}
        }
		partial void OnSexChanging();
		partial void OnSexChanged();
		
		public virtual System.DateTime? Birthday
        {
            get { return _birthday; }
			set
			{
				OnBirthdayChanging();
				_birthday = value;
				OnBirthdayChanged();
			}
        }
		partial void OnBirthdayChanging();
		partial void OnBirthdayChanged();
		
		public virtual int? Age
        {
            get { return _age; }
			set
			{
				OnAgeChanging();
				_age = value;
				OnAgeChanged();
			}
        }
		partial void OnAgeChanging();
		partial void OnAgeChanged();
		
		public virtual string Marriagestatus
        {
            get { return _marriagestatus; }
			set
			{
				OnMarriagestatusChanging();
				_marriagestatus = value;
				OnMarriagestatusChanged();
			}
        }
		partial void OnMarriagestatusChanging();
		partial void OnMarriagestatusChanged();
		
		public virtual string Nationality
        {
            get { return _nationality; }
			set
			{
				OnNationalityChanging();
				_nationality = value;
				OnNationalityChanged();
			}
        }
		partial void OnNationalityChanging();
		partial void OnNationalityChanged();
		
		public virtual string Countysanjak
        {
            get { return _countysanjak; }
			set
			{
				OnCountysanjakChanging();
				_countysanjak = value;
				OnCountysanjakChanged();
			}
        }
		partial void OnCountysanjakChanging();
		partial void OnCountysanjakChanged();
		
		public virtual string Identitycard
        {
            get { return _identitycard; }
			set
			{
				OnIdentitycardChanging();
				_identitycard = value;
				OnIdentitycardChanged();
			}
        }
		partial void OnIdentitycardChanging();
		partial void OnIdentitycardChanged();
		
		public virtual string Address
        {
            get { return _address; }
			set
			{
				OnAddressChanging();
				_address = value;
				OnAddressChanged();
			}
        }
		partial void OnAddressChanging();
		partial void OnAddressChanged();
		
		public virtual string Casenumber
        {
            get { return _casenumber; }
			set
			{
				OnCasenumberChanging();
				_casenumber = value;
				OnCasenumberChanged();
			}
        }
		partial void OnCasenumberChanging();
		partial void OnCasenumberChanged();
		
		public virtual string Employment
        {
            get { return _employment; }
			set
			{
				OnEmploymentChanging();
				_employment = value;
				OnEmploymentChanged();
			}
        }
		partial void OnEmploymentChanging();
		partial void OnEmploymentChanged();
		
		public virtual string Telephone
        {
            get { return _telephone; }
			set
			{
				OnTelephoneChanging();
				_telephone = value;
				OnTelephoneChanged();
			}
        }
		partial void OnTelephoneChanging();
		partial void OnTelephoneChanged();
		
		public virtual string Mobile
        {
            get { return _mobile; }
			set
			{
				OnMobileChanging();
				_mobile = value;
				OnMobileChanged();
			}
        }
		partial void OnMobileChanging();
		partial void OnMobileChanged();
		
		public virtual string Unitpostcode
        {
            get { return _unitpostcode; }
			set
			{
				OnUnitpostcodeChanging();
				_unitpostcode = value;
				OnUnitpostcodeChanged();
			}
        }
		partial void OnUnitpostcodeChanging();
		partial void OnUnitpostcodeChanged();
		
		public virtual string Sicktype
        {
            get { return _sicktype; }
			set
			{
				OnSicktypeChanging();
				_sicktype = value;
				OnSicktypeChanged();
			}
        }
		partial void OnSicktypeChanging();
		partial void OnSicktypeChanged();
		
		public virtual string Unittelephone
        {
            get { return _unittelephone; }
			set
			{
				OnUnittelephoneChanging();
				_unittelephone = value;
				OnUnittelephoneChanged();
			}
        }
		partial void OnUnittelephoneChanging();
		partial void OnUnittelephoneChanged();
		
		public virtual string Cardid
        {
            get { return _cardid; }
			set
			{
				OnCardidChanging();
				_cardid = value;
				OnCardidChanged();
			}
        }
		partial void OnCardidChanging();
		partial void OnCardidChanged();
		
		public virtual string Medicaresafetyid
        {
            get { return _medicaresafetyid; }
			set
			{
				OnMedicaresafetyidChanging();
				_medicaresafetyid = value;
				OnMedicaresafetyidChanged();
			}
        }
		partial void OnMedicaresafetyidChanging();
		partial void OnMedicaresafetyidChanged();
		
		public virtual string Mark
        {
            get { return _mark; }
			set
			{
				OnMarkChanging();
				_mark = value;
				OnMarkChanged();
			}
        }
		partial void OnMarkChanging();
		partial void OnMarkChanged();
		
		public virtual string Medicaretype
        {
            get { return _medicaretype; }
			set
			{
				OnMedicaretypeChanging();
				_medicaretype = value;
				OnMedicaretypeChanged();
			}
        }
		partial void OnMedicaretypeChanging();
		partial void OnMedicaretypeChanged();
		
		public virtual string Workunit
        {
            get { return _workunit; }
			set
			{
				OnWorkunitChanging();
				_workunit = value;
				OnWorkunitChanged();
			}
        }
		partial void OnWorkunitChanging();
		partial void OnWorkunitChanged();
		
		public virtual string Registeredaddress
        {
            get { return _registeredaddress; }
			set
			{
				OnRegisteredaddressChanging();
				_registeredaddress = value;
				OnRegisteredaddressChanged();
			}
        }
		partial void OnRegisteredaddressChanging();
		partial void OnRegisteredaddressChanged();
		
		public virtual string Nation
        {
            get { return _nation; }
			set
			{
				OnNationChanging();
				_nation = value;
				OnNationChanged();
			}
        }
		partial void OnNationChanging();
		partial void OnNationChanged();
		
		public virtual string Postalcode
        {
            get { return _postalcode; }
			set
			{
				OnPostalcodeChanging();
				_postalcode = value;
				OnPostalcodeChanged();
			}
        }
		partial void OnPostalcodeChanging();
		partial void OnPostalcodeChanged();
		
		public virtual string Registeredtele
        {
            get { return _registeredtele; }
			set
			{
				OnRegisteredteleChanging();
				_registeredtele = value;
				OnRegisteredteleChanged();
			}
        }
		partial void OnRegisteredteleChanging();
		partial void OnRegisteredteleChanged();
		
		public virtual System.DateTime Accessiontime
        {
            get { return _accessiontime; }
			set
			{
				OnAccessiontimeChanging();
				_accessiontime = value;
				OnAccessiontimeChanged();
			}
        }
		partial void OnAccessiontimeChanging();
		partial void OnAccessiontimeChanged();
		
		public virtual string Homeplace
        {
            get { return _homeplace; }
			set
			{
				OnHomeplaceChanging();
				_homeplace = value;
				OnHomeplaceChanged();
			}
        }
		partial void OnHomeplaceChanging();
		partial void OnHomeplaceChanged();
		
		public virtual string Insurer
        {
            get { return _insurer; }
			set
			{
				OnInsurerChanging();
				_insurer = value;
				OnInsurerChanged();
			}
        }
		partial void OnInsurerChanging();
		partial void OnInsurerChanged();
		
		public virtual string Policy
        {
            get { return _policy; }
			set
			{
				OnPolicyChanging();
				_policy = value;
				OnPolicyChanged();
			}
        }
		partial void OnPolicyChanging();
		partial void OnPolicyChanged();
		
		public virtual string Compactunit
        {
            get { return _compactunit; }
			set
			{
				OnCompactunitChanging();
				_compactunit = value;
				OnCompactunitChanged();
			}
        }
		partial void OnCompactunitChanging();
		partial void OnCompactunitChanged();
		
		public virtual string Ageunit
        {
            get { return _ageunit; }
			set
			{
				OnAgeunitChanging();
				_ageunit = value;
				OnAgeunitChanged();
			}
        }
		partial void OnAgeunitChanging();
		partial void OnAgeunitChanged();
		
		public virtual int? Avoirdupois
        {
            get { return _avoirdupois; }
			set
			{
				OnAvoirdupoisChanging();
				_avoirdupois = value;
				OnAvoirdupoisChanged();
			}
        }
		partial void OnAvoirdupoisChanging();
		partial void OnAvoirdupoisChanged();
		
		public virtual string Pathophysiological
        {
            get { return _pathophysiological; }
			set
			{
				OnPathophysiologicalChanging();
				_pathophysiological = value;
				OnPathophysiologicalChanged();
			}
        }
		partial void OnPathophysiologicalChanging();
		partial void OnPathophysiologicalChanged();
		
		public virtual string Allergy
        {
            get { return _allergy; }
			set
			{
				OnAllergyChanging();
				_allergy = value;
				OnAllergyChanged();
			}
        }
		partial void OnAllergyChanging();
		partial void OnAllergyChanged();
		
        #endregion
    }
}
